-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lifetime-free range methods #732
Conversation
20142b5
to
8677438
Compare
Hi, this is great! In iroh we have to return owned iterators to tables, and thus far resorted to the ouroboros crate, which allows to create self-referential structs through very unsafe means. We'd love to get rid of that, because ouroboros was plagued with unsoundness issues in the past. However one of our owned iterators contains a |
I think I'll be able to just remove all the lifetimes from |
I've seen more crates have functions and structs use the
Is there a limitation requiring a lifetime for writes? I assume that means My current experiment is making a DBMS backed by |
I think the lifetime can be removed from WriteTransaction, and maybe Table too. The |
These methods return reference counted iterators from read only transactions
@Frando I think the latest master will allow you remove that. read-only tables are now returned with the |
|
Great! Ya, it's not released yet because I want to get a couple more breaking changes in before I release 2.0 |
Fixes #725